<?php
// +----------------------------------------------------------------------
// | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2019 http://www.thinkcmf.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: 老猫 <thinkcmf@126.com>
// +----------------------------------------------------------------------
namespace app\portal\controller;

use cmf\controller\HomeBaseController;

class IndexController extends HomeBaseController{




    public function index()
    {

//        header("location:user/login/index");

        return $this->fetch(":index");
//        echo __FILE__;
    }



    //支付返回
    public function paybackc(){

        $input=file_get_contents("php://input");

        $obj = simplexml_load_string($input, 'SimpleXMLElement', LIBXML_NOCDATA);

        $data = json_decode(json_encode($obj), true);



        Db::name('pay_log')->where(['orderid'=>$data['out_trade_no']])->where(['status'=>0])->find();



    }




}
